//
//  DeviceInfo.m
//  LoveDraw
//
//  Created by 零零壹 on 2017/7/8.
//  Copyright © 2017年 梁晨. All rights reserved.
//

#import "DeviceInfo.h"
#import "PDKeyChain.h"

@implementation DeviceInfo

+(NSString *)getUUid
{
    if ([PDKeyChain keyChainLoad].length==0) {
         [PDKeyChain keyChainSave:[[[UIDevice currentDevice]identifierForVendor] UUIDString]];
        return [[[UIDevice currentDevice]identifierForVendor] UUIDString];
    }else
    {
        NSLog(@"%@",[PDKeyChain keyChainLoad]);
        return [PDKeyChain keyChainLoad];
    }
}

@end
